/**
 * 2017年11月9日
 */
package com.alibaba.study.dynamicproxy.driver;

import com.alibaba.study.dynamicproxy.Hello;
import com.alibaba.study.dynamicproxy.common.HelloService;
import com.alibaba.study.dynamicproxy.simple.StaticProxy;

/**
 * org.springframework.aop.framework.ProxyFactoryBean
 * @author Alex
 *
 */
public class ProxyDriver {
	public static void main(String[] args) {
		Hello hello = getService();
		System.out.println(hello.sayHello(" Alex "));
		
	}
	static Hello getService(){
		Hello h = new HelloService();
		return new StaticProxy(h);
	}
}
